<?php

class openapi_api_function_v1_activity extends openapi_api_function_abstract implements openapi_api_function_interface{

    public function getList($params,&$code,&$sub_msg)
    {
      	$tid = $params['tid'];
		$priceid = $params['priceid'];
        $activitylist =  kernel::service('groupbuy_show_typelist')->show_activitylist($tid, $priceid);//团购列表
        return $activitylist;
    }

    public function actinfo($params,&$code,&$sub_msg)
    {
        $act_id = $params['act_id'];
      	$activitylist =  kernel::service('groupbuy_show_typelist')->show_activityinfo($act_id);//团购详情
        return $activitylist;
    }

    public function typelist($params,&$code,&$sub_msg)
    {
        $cat =  kernel::service('groupbuy_show_typelist')->show_typelist();//类别列表
        return $cat;
    }
}